.discover-page {
  min-height: 100vh;
  background: #f5f5f5;
  padding-bottom: 60px; // 为 tabBar 预留空间

  .discover-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 20px;
    color: #fff;
    
    .header-title {
      font-size: 20px;
      font-weight: bold;
    }
  }

  // 总览卡片
  .overview-card {
    background: #fff;
    margin: 20px;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    justify-content: space-around;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    
    .overview-item {
      text-align: center;
      flex: 1;
      
      .overview-label {
        font-size: 13px;
        color: #999;
        margin-bottom: 8px;
      }
      
      .overview-value {
        font-size: 20px;
        font-weight: bold;
        
        &.income {
          color: #2ed573;
        }
        
        &.expense {
          color: #ff4757;
        }
      }
    }
  }

  // 统计区域
  .stats-section {
    margin: 20px;
    
    .section-title {
      font-size: 16px;
      font-weight: bold;
      color: #333;
      margin-bottom: 15px;
    }
    
    .month-list {
      max-height: 400px;
      
      .empty-state {
        text-align: center;
        padding: 60px 20px;
        color: #999;
        font-size: 14px;
      }
      
      .month-item {
        background: #fff;
        border-radius: 8px;
        padding: 15px;
        margin-bottom: 10px;
        box-sizing: border-box;
        
        .month-header {
          display: flex;
          justify-content: space-between;
          align-items: center;
          margin-bottom: 12px;
          
          .month-name {
            font-size: 15px;
            font-weight: bold;
            color: #333;
          }
          
          .month-balance {
            font-size: 16px;
            font-weight: bold;
            
            &.positive {
              color: #2ed573;
            }
            
            &.negative {
              color: #ff4757;
            }
          }
        }
        
        .month-details {
          display: flex;
          justify-content: space-around;
          padding-top: 12px;
          border-top: 1px solid #f0f0f0;
          
          .detail-item {
            text-align: center;
            flex: 1;
            
            .detail-label {
              font-size: 12px;
              color: #999;
              margin-bottom: 6px;
            }
            
            .detail-value {
              font-size: 15px;
              font-weight: bold;
              
              &.income {
                color: #2ed573;
              }
              
              &.expense {
                color: #ff4757;
              }
            }
          }
        }
      }
    }
  }

  // 图表区域
  .chart-section {
    margin: 20px;
    
    .section-title {
      font-size: 16px;
      font-weight: bold;
      color: #333;
      margin-bottom: 15px;
    }
    
    .chart-container {
      background: #fff;
      border-radius: 12px;
      padding: 4px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      box-sizing: border-box;
      width: 100%;
      overflow: hidden;
      
      .charts {

        // display: block;
        // max-width: 100%;
      }
    }
  }

  // 数据概览
  .data-summary {
    margin: 20px;
    
    .summary-title {
      font-size: 16px;
      font-weight: bold;
      color: #333;
      margin-bottom: 15px;
    }
    
    .summary-grid {
      display: flex;
      flex-wrap: wrap;
      box-sizing: border-box;
      
      .summary-item {
        flex: 0 0 calc(50% - 5px); // 两列布局
        background: #fff;
        border-radius: 8px;
        padding: 15px;
        text-align: center;
        box-sizing: border-box;
        margin-bottom: 10px;
        
        &:nth-child(odd) {
          margin-right: 10px;
        }
        
        .summary-label {
          font-size: 13px;
          color: #999;
          margin-bottom: 8px;
        }
        
        .summary-value {
          font-size: 18px;
          font-weight: bold;
          color: #333;
        }
      }
    }
  }
}

/* 主题：深色模式覆盖 */
.discover-page.theme-dark {
  background: #0f172a;

  .discover-header {
    background: linear-gradient(135deg, #1e2a66 0%, #16204f 100%);
    color: #e5e7eb;
  }

  .overview-card {
    background: #141a2a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    .overview-label { color: #9aa4b2; }
    .overview-value { color: #e5e7eb; }
    .overview-value.income { color: #39d98a; }
    .overview-value.expense { color: #ff6370; }
  }

  .stats-section {
    .section-title { color: #e5e7eb; }
    .month-list {
      .empty-state { color: #9aa4b2; }
      .month-item {
        background: #141a2a;
        .month-name { color: #e5e7eb; }
        .month-balance { color: #e5e7eb; }
        .month-balance.positive { color: #39d98a; }
        .month-balance.negative { color: #ff6370; }
        .month-details {
          border-top: 1px solid rgba(255,255,255,0.08);
          .detail-label { color: #9aa4b2; }
          .detail-value { color: #e5e7eb; }
          .detail-value.income { color: #39d98a; }
          .detail-value.expense { color: #ff6370; }
        }
      }
    }
  }

  .chart-section {
    .section-title { color: #e5e7eb; }
    .chart-container { background: #141a2a; box-shadow: 0 2px 8px rgba(0,0,0,0.35); }
  }

  .data-summary {
    .summary-title { color: #e5e7eb; }
    .summary-item { background: #141a2a; }
    .summary-label { color: #9aa4b2; }
    .summary-value { color: #e5e7eb; }
  }
}
